package com.desiy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Desiy
 * @date 2020/9/16 21:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Admin {
    private Integer id;
    private String rel_name;
    private String username;
    private String password;
    private String code;
    private String role;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日")
    private Date birth;

    private Long phone;
    private String email;
    private String departmentName;
    private Integer sex;
}
